<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Javascript</title>
<script type="text/javascript">
function hello(){
	
	alert("Hello");
}
function textchange(e){
	alert(e.value);
	alert(document.getElementById("name").valueOf().value);
}
/*function radio(){
	
	    if($('input[type=radio]:Male').length == 0){
		   alert("you have selected Male");
		   else if($('input[type=radio]:Female').length == 0){
			   alert("you have selected Female");
	    }
	
}*/
</script>
</head>
<body>
<input type="button" value="say Hello" onclick="hello()" />
<input type="text" id="name" onchange="textchange(this)"  onkeydown="textchange(this)"onmousedown="textchange(this)"/>
<input type="text" id="name" onchange="textchange(this)" />
<input type="radio" name="sex" value="male" onclick="textchange(this)"  /> Male
<input type="radio" name="sex" value="female" onclick="textchange(this)"/> Female
<input type="checkbox" name="sexCheck" value="male" onclick="textchange(this)" /> Male
<input type="checkbox" name="sexCheck" value="female" onclick="textchange(this)"/> Female


	
</body>
</html>